//头部 导航条
.header {
  height: 70px;
  width: 1000px;
  display: flex;
  flex-direction: row;
  align-items: center;
  vertical-align: middle;

  .logo {
    flex: 2;
    position: relative;

    a {
      display: flex;
      align-items: center;
      padding: 0 15px;
      text-decoration: none;
      //经典的隐藏logo名字并优化seo
      text-indent: -99999px;
      overflow: hidden;

      &::after {
        content: '婚恋网站';
        font-size: 0.85rem;
        color: #9a9a9a;
        font-weight: 400;
        letter-spacing: 1.5px;
        width: 100px;
        height: 60px;
        line-height: 60px;
        text-align: center;
        border-left: 1px solid #ebebeb;
        padding-left: 0px;
        margin-left: 20px;
        //伪元素会继承它所以来的元素属性 所以覆盖
        text-indent: -1px;
        overflow: auto;
      }


      img {
        width: 200px;
        height: 60px;
        border-radius: 5px;
        display: block;


      }
    }


  }


  .login {
    flex: 4;
    display: flex;
    justify-content: space-around;

    form {
      display: flex;
    }

    input {
      width: 40%;
      outline: #aaaaaa;
      border: 1px solid #aaaaaa;
    }

    input::-webkit-input-placeholder {
      font-size: 12px;
      color: #aaaaaa;
      padding-left: 5px;
      letter-spacing: 1px;
    }

    input[type='button'] {
      //width: 70px;
      //宽度无效 被last child覆盖
      height: 30px;
      line-height: 30px;
      font-size: 14px;
      color: white;
      letter-spacing: 1px;
      background-color: #0098c2;
    }

    input:nth-child(n+2) {
      margin-left: 10px;
    }

    input:last-child {
      width: 20%;
    }
  }

  .other-login {
    flex: 4;
    display: flex;

    div {
      margin-left: 10px;
    }

    ul {
      display: inline;
    }

    li, span {
      display: inline;
      font-size: .5rem;
      color: #aaaaaa;

    }

    .f1 {
      flex: 6;


    }

    .f1 span:first-child:hover {
      color: #aaaaaa;
    }

    li:hover, span:hover {
      color: #ff4400;
    }


    .f2 {
      flex: 3;

    }

    .f3 {
      flex: 2;

    }

  }
}

//注册表格大背景

.big-register {
  position: relative;
  left: 0;
  width: 100%;
  height: 450px;
  background-image: url(big_bg4.jpg);
  background-size: 1920px 450px;
  margin: 0 0;

  .box {
    height: 450px;

    .register-form {
      width: 400px;
      height: 380px;
      background-color: #fffcfe;
      opacity: 0.9;
      top: 30px;
      position: absolute;

      .title {
        width: 380px;
        color: #8e8e9d;
        letter-spacing: 1px;
        font-weight: 400;
        padding: 15px 0;
        margin: 0 auto;
        text-align: center;
        border-bottom: 1px solid #f4f3f3;
      }

      tr {
        height: 50px;
      }

      td.sex {
        width: 120px;
      }

      td, input, label, option, select {
        font-size: 14px;
      }

      td.text-start {
        text-align: right;
        width: 120px;
        padding-right: 10px;

      }


      .sex-icon-male {
        background-image: url('sex.jpg');
        background-repeat: no-repeat;
        background-position: 0px 3px;
        padding-left: 20px;
      }

      .sex-icon-female {
        background-image: url('sex.jpg');
        background-repeat: no-repeat;
        background-position: 0px -28px;
        padding-left: 20px;
      }

      td.input-group {
        width: 325px;
      }

      .marry {
        label {
          padding-right: 20px;
        }
      }

      .free-register {
        color: white;
        background-color: #ff536a;
        margin: 0 auto;
        display: block;
        height: 45px;
        width: 215px;
        line-height: 45px;
        text-align: center;
        font-size: 16px;
      }

      .yet-vip {
        color: #aaaaaa;
        font-size: 12px;
        text-decoration: underline;
      }
    }
  }
}

//宣传横条
.slogan-banner {
  height: 78px;
  background-color: #ededed;
  width: 100% !important;

  .inner {
    background-image: url("sprite.png");
    background-position: 0 -80px;
    background-repeat: no-repeat;
    height: 100%;
  }
}

//用户照片墙 主要使用了定位 但涉及到计算 因主要练习css语法 故搁置

.vips {
  background-color: #303438;
  color: white;
  position: relative;

  .title {
    padding: 20px 0;
    height: 60px;

    h2 {
      padding: 0 0 0 60px;
      height: 60px;
      line-height: 60px;
      font-size: 28px;
      background: url("sprite.png") 0px -480px;
      border-radius: 20px;
    }

  }


  .show-vip {
    position: relative;
    //

    .cate-data {
      position: absolute;
      width: 250px;
      height: 142px;
      top: 0;
      left: 750px;

      a {
        background-color: #219dc0;
        border: .5px solid #303030;
        color: white;
        font-weight: 400;
        font-size: 18px;
        text-decoration: none;
        width: 81px;
        height: 46px;
        text-align: center;
        line-height: 46px;
        float: left;

        &:hover {
          color: red;
          background-color: #219dc0;
          border: .5px solid #303030;
          font-weight: 400;
          text-decoration: none;
          width: 81px;
          height: 46px;
          text-align: center;
          line-height: 46px;
          float: left;
          font-size: 18px;
        }
      }


    }

    //采用定位实现 需要计算先放一边 跳过
    .vip-pics {
      position: relative;
      height: 600px;
      padding-bottom: 100px;

      div[class^='pos'] {
        width: 248px;
        height: 286px;
        border: 1px solid black;
        position: absolute;

        img {
          width: 248px;
          height: 286px;
        }
      }
    }


  }

  .filter-form {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;


    font-size: 18px;
    font-weight: 100;
    letter-spacing: 2px;

    .inner {
      display: inline-block;
      color: #ccccc3;
      padding-left: 30px;
      font-size: 18px;
      font-weight: 100;
      height: 30px;
      line-height: 30px;
      letter-spacing: 2px;
    }

    .inner::before {
      content: '';
      position: absolute;
      display: inline-block;
      width: 25px;
      height: 30px;
      top: 2px;
      left: 0px;
      background-image: url(sprite.png);
      background-position: 0px -344px;
      border-radius: 20px;
    }

    .filter {
      display: inline-block;
      color: #aaaaaa;

      label, input {
        margin-left: 3px;
      }

      select, option, label {
        letter-spacing: .5px;
        font-size: 18px;
      }

      .filter-btn {
        color: #ededed;
        outline: none;
        background-color: #3399cc;
        border: none;
        padding: 1px 10px;
        letter-spacing: 10px;
        text-indent: 10px;
      }
    }

  }

}


//配对成功部分 小菜单跳过

.pair-success {
  height: 475px;

  background-color: #eff0f0;

  .title {

    .inner {
      position: relative;
      padding: 30px 60px;
      display: inline-block;
      color: #3f3f3f;
      line-height: 60px;
      height: 60px;
      font-size: 32px;
      font-weight: 700;
      letter-spacing: 2px;
    }

    .inner::before {
      content: '';
      position: absolute;
      display: inline-block;
      width: 60px;
      height: 60px;
      top: 33px;
      left: 0px;
      background-image: url(sprite.png);
      background-position: 0px -535px;
      border-radius: 20px;
    }

  }

  .loves {
    div.item {
      position: relative;
      width: 160px;
      height: 160px;
      display: inline-block;
      overflow: hidden;

      .userinfo {
        position: absolute;
        bottom: -70px;
        color: white;
        font-size: 16px;
        background-color: rgba(0, 0, 0, 0.6);
        transition: all linear .5s;

        em {
          font-size: 12px;
          display: block;
          white-space: nowrap;
          overflow: hidden;
          text-overflow: ellipsis;
          vertical-align: baseline;
          text-align: center;
          padding: 2px;
        }
      }
    }


    .item:hover, .item:visited {

      .userinfo {

        position: absolute;
        width: 160px;
        /* height: 60px; */
        padding-bottom: 10px;
        bottom: 0;

        color: white;
        background-color: rgba(0, 0, 0, 0.6);

        em {
          font-size: 12px;
          display: block;
          white-space: nowrap;
          overflow: hidden;
          text-overflow: ellipsis;
          vertical-align: baseline;
          text-align: center;
          padding: 2px;
        }
      }
    }
  }
}

.service-banner {
  background-color: #52c9eb;

  .inner {
    height: 120px;
    font-weight: 800;
    font-size: 36px;
  }
}